package com.guo.dms.dept.permission.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.guo.dms.dept.permission.dao.PermssionDao;
import com.guo.dms.dept.permission.entity.Permission;

/**
 * 权限管理服务类
 * @author Administrator
 *
 */
@Service
public class PermissionService {
	@Autowired
	private  PermssionDao permissionDao;
	
	/**
	 * 获取所有的Permission
	 * @return
	 */
	public List<Permission> getAllPermissions(){
		return permissionDao.selectAllPermissions();
	}
}
